<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/page/common/public.jspf"%>
<%@ page import="com.hengpeng.itfints.tools.PageUtil" %>
<% 
	PageUtil pageUtil = (PageUtil)request.getAttribute("PageUtil");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息中心</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<script type="text/javascript">
//分页
function go (page, total) {
	if (page > total) {
		page = total;
	}
	$("#curPage").val(page);
	$("#myform").submit();
}
</script>
</head>
<body bgcolor="#f9f9f9">
<form id="myform" action="<%=request.getContextPath()%>/article/morelist.htm">
	<input type="hidden" id="curPage" name="curPage" />
    <!-- head -->
	<c:import url="../../include/top.jsp"></c:import>
	
	
	<div class="youarehere">
		<div class="localtion"><a href="${path }/">首页</a> > 信息中心</div>
	</div>

	<!--主体  -->
                        
<div class="wrap f_yh">
<div class="ty_line" style="margin-bottom: 50px;overflow: auto;background: #fff">
   	<div class="dh_pub_list" id="tags">
           <ul>
               <li><a href="javascript:void(0);" class="overbg">综合排序</a></li>
           </ul>
       </div>
	<div class="clearfix"></div>
	<div>
		<table cellpadding="0" cellspacing="0" class="clubTable" width="100%">
			<tr class="borderBottom_dd">
				<td style="width: 50%">标题</td>
				<td style="width: 10%">点击率</td>
				<td style="width: 20%">新闻类别</td>
				<td style="width: 10%">来源</td>
				<td style="width: 10%">发布时间</td>
			</tr>
			<c:forEach items="${dataList}" var="auto" varStatus="sta">
				<tr class="<c:if test="${sta.index%2 eq 0 }">borderBottom_d1</c:if>" 
					onmouseover="this.className='borderBottom_d2 over_bgcolor'" 
					onmouseout="this.className='<c:if test="${sta.index%2 eq 0 }">borderBottom_d1</c:if>'">
					<td>
						<p class="borrow_title">
							<a href="<%=request.getContextPath()%>/article/details.htm?articleId=${auto.id}">${auto.title}</a>
						</p>
					</td>
					<td>
						<p>${auto.clickRate}次</p>
					</td>
					<td>
						<p>
							${auto.category.name}
						</p>
					</td> 
					<td>
						<p>${auto.source}</p>
					</td>
					<td>
						<p>
							<fmt:formatDate value="${auto.publishTime}" pattern="yyyy-MM-dd"/>
						</p>
					</td>
				</tr>
			</c:forEach>
		</table>	
	</div>
	<div class="paginations">
		<div class="page-bottom">
			记录总数<%=pageUtil.getTotalCount()%>条 当前页/总页数<%=pageUtil.getCurrentPage()%> 
			/<%=pageUtil.getPageCount()%>每页显示<%=pageUtil.getPageSize()%>条 
			<a onclick="javascript:go(1,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_frist" class="page-start"><span>首页</span></a> 
			<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() - 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_pre" class="page-prev"><span>上一页</span></a> 
			<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() + 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_next" class="page-next"><span>下一页</span></a> 
			<a onclick="javascript:go(<%=pageUtil.getPageCount()%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_last" class="page-end"><span>末页</span></a> 
		</div>
	</div>
</div>
</div>
<!--主体-->
    	
    	
<!--foot-->
<c:import url="../../include/foot.jsp"></c:import>
<!--foot--> 
</form>
</body>
</html>